/**
 * Created by GG on 2017/3/22.
 */
//内容切换
//	简介
function profile() {
	console.log("profile");
	$(".bg-pic").attr("src", "../img/static/bgi1.jpg");//banner图
	$(".nav span").css("border-bottom","0px");//所有状态为默认
	$(".profile").css("border-bottom","5px solid #e4006e");//当前状态为选中
	$(".content").css({"display":"block","border-radius": "0 12px 12px 12px"});//内容显示
	$(".news-page").css("display", "none");//新闻页隐藏
	$(".paged").css("display", "none");
	$(".news-details-page").css("display", "none");
	$(".details-control").css("display", "none");
	$(".jianjie").css("display", "block");
	$(".youshi").css("display", "none");
	$(".shiji").css("display", "none");
	$(".subnav ol.intro").css("display", "block");
	$(".subnav ol.product").css("display", "none");
	$(".intro1").css("display","block");
	$(".intro li").removeClass('cur');
	$(".intro li").eq(0).addClass('cur');
	$(".productcont,.aboutuscont").css("display","none");

}
//产品
function advantage(){
	$(".bg-pic").attr("src","../img/static/bgi2.jpg");
	$(".nav span").css("border-bottom","0px");
	$(".advantage").css("border-bottom","5px solid #e4006e");
	$(".content").css({"display":"block","border-radius": "0 12px 12px 12px"});
	$(".news-page").css("display","none")
	$(".paged").css("display","none")
	$(".news-details-page").css("display","none");
	$(".details-control").css("display","none");
	$(".jianjie").css("display","none");
	$(".youshi").css("display","block");
	$(".shiji").css("display","none");
	$(".subnav ol.intro").css("display", "none");
	$(".subnav ol.product").css("display", "block");
	$(".product1").css("display","block");
	$(".product li").removeClass('cur');
	$(".product li").eq(0).addClass('cur');
	$(".introcont,.aboutuscont").css("display","none");
}
//招聘
function aboutus(){
	$(".bg-pic").attr("src","../img/static/bgi3.jpg");
	$(".nav span").css("border-bottom","0px");
	$(".event").css("border-bottom","5px solid #e4006e");
	$(".content").css({"display":"block","border-radius": "12px"});
	$(".news-page").css("display","none")
	$(".paged").css("display","none")
	$(".news-details-page").css("display","none");
	$(".details-control").css("display","none");
	$(".jianjie").css("display","none");
	$(".youshi").css("display","none");
	$(".aboutuscont").css("display","block");
	$(".subnav ol").css("display", "none");
	$(".productcont").css("display","none");
	$(".introcont").css("display","none");
}
//新闻
function news(){
	$(".bg-pic").attr("src","../img/static/bgi4.jpg");
	$(".nav span").css("border-bottom","0px");
	$(".news").css("border-bottom","5px solid #e4006e");
	$(".content").css({"display":"none","border-radius": "12px"})
	$(".news-page").css("display","block");
	$(".paged").css("display","block");
	$(".news-details-page").css("display","none");
	$(".details-control").css("display","none");
	$(".subnav ol").css("display", "none");
	$(".introcont,.aboutuscont").css("display","none");

	console.log("news");
}
//新闻详情页
function details(){
	$(".bg-pic").attr("src","../img/static/bgi4.jpg");
	$(".nav span").css("border-bottom","0px");
	$(".news").css("border-bottom","5px solid #e4006e");
	$(".content").css("display","none")
	$(".news-page").css("display","none");
	$(".paged").css("display","none");
	$(".news-details-page").css("display","block");
	$(".details-control").css("display","block");
}


